$(function () {
});
var api = 'http://192.168.0.115:8088/'
// 点击下一步
function Next() {
    if ($("input[name=form_name]").val() == '') {
        alert("名称不能为空")
        return
    }
    var arr =  document.getElementById('build').innerHTML
    axios({
        method: 'post',
        url: api + 'sp/saveForm',
        params: {
            name: $("input[name=form_name]").val(),
            html: arr
        }
    }).then(res=>{
        localStorage.removeItem("id")
        localStorage.removeItem("name")
        localStorage.setItem("id",res.data.id)
        localStorage.setItem("name",res.data.name)
        location.href= './auditor.html'
    })
}